export default {
    state: {
        language: localStorage.getItem('lang') || 'zh-CN'
    },
    getters: {
        language: (state) => state.language
    },
    mutations: {
        setLanguage: (state, language) => {
            state.language = language;
            localStorage.setItem('lang', language);
        }
    }
};
